<?php
/**
 * 加载Iframe框架
 * @author yaoli<yaoli@pateo.com.cn>
 * @version 1.0 add by yaoli<yaoli@pateo.com.cn> 
 */
class index extends ActionBase1 {
	
	
	function init(){
		
	}
	
	/**
	 * 动作
	 *
	 * @see AActionBase::action()
	 */
	public function action() {
		
		global $_SGLOBAL;
		$user = load_model("bcs")->getuserinfo();
		$this->data['user'] =$user['customer'];
		#dump($this->data['user']);
		 $this->template('main.html');
	}
	
	public function left() {
		
		//加载语言包，默认为中文
		
		$menu = include_once CONFIG_ROOT.'language.php';
		$lan = cache::getdata("lan", "cookie");
		
		$lan = isset($lan)?$lan:"ch";
		
		$this->data['menu'] = $menu[$lan];
		$this->template('left.html');
	}
	
	public function welcome(){
		global $_SGLOBAL;
		$user = ($_SGLOBAL['user']);
		$this->data['uid'] = $_SGLOBAL['uid'];
		$this->data['uname'] = $user['customer']['descript'];
		$this->data['sex'] = $user['customer']['sex']==1?'先生':'女士';
		
		
		$this->template ('welcome.html');
	}
	
}
